package com.back.service.inte;

import com.back.entity.Review;
import com.back.uitls.MyException;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public interface ReviewService {
    // 获取某个电影的评论，带分页，按时间排序
    Map<String, Object> selectReviewByMovieId(int movie_id, int offset, int pagesize) throws MyException;

    // 对某个电影添加评论
    void insertReview(Review review) throws MyException;

    // 对某个电影进行打分
    void insertScore(int movie_id, int user_id, int score) throws MyException;


}
